<template>
    <view class="container">
        <view class="header-tabs">
            <view
                @tap="__e"
                :class="['tab-item', current == index ? 'active' : '']"
                :data-current="index"
                :data-event-opts="[['tap', [['currentChange', ['$event']]]]]"
                v-for="(item, index) in typeTextList"
                :key="index"
            >
                <text class="text">{{ '' + item + '' }}</text>

                <view class="tab-item-num" v-if="statusTotal[types[index]]">{{ statusTotal[types[index]] }}</view>
            </view>
        </view>
        <view class="box">
            <view class="swiper-wrapper">
                <swiper @change="__e" :current="current" :data-event-opts="[['change', [['currentChange2', ['$event']]]]]">
                    <swiper-item v-for="(item, index) in $root.l1" :key="index">
                        <scroll-view @scrolltolower="__e" :data-event-opts="[['scrolltolower', [['scrolltolower', ['$event']]]]]" :scrollY="true">
                            <view class="box-title" v-if="boxTitle">
                                <view
                                    @tap="__e"
                                    :class="['box-item', boxIndex == i ? 'active' : '']"
                                    :data-event-opts="[['tap', [['boxchange', [i]]]]]"
                                    v-for="(v, i) in boxList"
                                    :key="i"
                                >
                                    <text class="text">{{ '' + v + '' }}</text>
                                </view>
                            </view>
                            <view class="order-list" v-if="!boxShow">
                                <package-sku
                                    @__l="
                                        __l($event, {
                                            eventOpts: [
                                                ['^check', [['checkItem', ['$0'], [[['dataList.' + index + '.list', 'uuid', order[$orig].uuid]]]]]],
                                                ['^refresh', [['refresh']]],
                                                ['^action', [['actions']]]
                                            ]
                                        })
                                    "
                                    @action="
                                        __e($event, {
                                            eventOpts: [
                                                ['^check', [['checkItem', ['$0'], [[['dataList.' + index + '.list', 'uuid', order[$orig].uuid]]]]]],
                                                ['^refresh', [['refresh']]],
                                                ['^action', [['actions']]]
                                            ]
                                        })
                                    "
                                    @check="
                                        __e($event, {
                                            eventOpts: [
                                                ['^check', [['checkItem', ['$0'], [[['dataList.' + index + '.list', 'uuid', order[$orig].uuid]]]]]],
                                                ['^refresh', [['refresh']]],
                                                ['^action', [['actions']]]
                                            ]
                                        })
                                    "
                                    @refresh="
                                        __e($event, {
                                            eventOpts: [
                                                ['^check', [['checkItem', ['$0'], [[['dataList.' + index + '.list', 'uuid', order[$orig].uuid]]]]]],
                                                ['^refresh', [['refresh']]],
                                                ['^action', [['actions']]]
                                            ]
                                        })
                                    "
                                    :data-event-opts="[
                                        ['^check', [['checkItem', ['$0'], [[['dataList.' + index + '.list', 'uuid', order[$orig].uuid]]]]]],
                                        ['^refresh', [['refresh']]],
                                        ['^action', [['actions']]]
                                    ]"
                                    :isSelectMode="isSelectMode"
                                    :isSelected="order.g0 > -1"
                                    :myInfo="myInfo"
                                    :order="order[$orig]"
                                    :selectType="selectType"
                                    :vueId="'6d72e1cd-1-' + index + '-' + __i0__"
                                    v-for="(order, __i0__) in item.l0"
                                    :key="__i0__"
                                ></package-sku>
                                <view class="load-more margin-v" v-if="item.g1 < dataList[index].total">加载中...</view>
                                <no-data @__l="__l" tips="无订单" :title="arrBox[index]" :vueId="'6d72e1cd-2-' + index" v-if="item.g2"></no-data>
                            </view>
                            <view class="box-body" v-else>
                                <view style="margin: 160rpx; font-size: 26rpx; color: #888" v-if="!$root.g3">暂无可开启的宝箱</view>
                                <block v-else>
                                    <view class="box-bao" v-for="(m, x) in allBox" :key="x">
                                        <view @tap="__e" class="box-baoxiang" :data-event-opts="[['tap', [['showaward', [x]]]]]">
                                            <image mode="widthFix" :src="m.activity.thumb"></image>
                                        </view>

                                        <view class="box-bao-text">
                                            <view>{{ m.activity.title }}</view>
                                            <view>{{ 'X' + m.total }}</view>
                                        </view>

                                        <view @tap="__e" class="open" :data-event-opts="[['tap', [['openBox', ['$0'], [[['allBox', '', x, 'uuid']]]]]]]">开启</view>
                                    </view>
                                </block>
                            </view>
                        </scroll-view>
                    </swiper-item>
                </swiper>
            </view>
        </view>
        <view class="footer-c" v-if="current == 0 && !orderConfig.is_hide_deliver_btn && showSelect">
            <block v-if="!isSelectMode">
                <view style="display: flex; width: 100%" v-if="myInfo.level > 4">
                    <view @tap="__e" class="select-box-btn btn-hei" :data-event-opts="[['tap', [['enterSelectMode', ['deliver']]]]]" v-if="!orderConfig.is_hide_deliver_btn">
                        <image src="https://img121.7dun.com//yuanqimali/mybox/xuanzefahuo.png"></image>
                    </view>
                    <view @tap="__e" class="select-box-btn btn-bai" :data-event-opts="[['tap', [['enterSelectMode', ['return_sale']]]]]" v-if="orderConfig.is_return_sale_enable">
                        <image src="https://img121.7dun.com//yuanqimali/mybox/xuanzefenjie.png"></image>
                    </view>
                </view>
                <view style="width: 100%; display: flex; justify-content: center" v-else>
                    <view @tap="__e" class="select-box-btn btn-hei" :data-event-opts="[['tap', [['enterSelectMode', ['deliver']]]]]" v-if="!orderConfig.is_hide_deliver_btn">
                        <image src="https://img121.7dun.com//yuanqimali/mybox/xuanzefahuo.png"></image>
                    </view>
                </view>
            </block>
            <block v-else>
                <button @tap="__e" class="select-all" :data-event-opts="[['tap', [['selectAll', ['$event']]]]]" hoverClass="hover">全选</button>
                <button @tap="__e" class="cancel-btn" :data-event-opts="[['tap', [['cancelSelect', ['$event']]]]]" hoverClass="hover">取消</button>
                <button @tap="__e" class="select-state" :data-event-opts="[['tap', [['selectOrSubmit', ['$event']]]]]" hoverClass="hover" v-if="selectType === 'deliver'">
                    {{ '提交发货 (已选' + $root.g4 + '件)' }}
                </button>
                <button @tap="__e" class="select-state" :data-event-opts="[['tap', [['batchReturnSale', ['$event']]]]]" hoverClass="hover" v-if="selectType === 'return_sale'">
                    {{ '确认分解 (已选' + $root.g5 + '件)' }}
                </button>
                <button @tap="__e" class="select-state" :data-event-opts="[['tap', [['batchResale', ['$event']]]]]" hoverClass="hover" v-if="selectType === 'resale'">
                    {{ '确认挂售 (已选' + $root.g6 + '件)' }}
                </button>
                <button @tap="__e" class="select-state" :data-event-opts="[['tap', [['batchExchange', ['$event']]]]]" hoverClass="hover" v-if="selectType === 'exchange'">
                    {{ '选择置换 (已选' + $root.g7 + '件)' }}
                </button>
            </block>
        </view>
        <view class="popupbox mask" v-if="popup">
            <view class="popup">
                <image class="popup-bg" mode="widthFix" src="https://img121.7dun.com/member_grade/popup-one.png"></image>
                <view @tap="__e" class="close" :data-event-opts="[['tap', [['close', ['$event']]]]]"></view>
                <view class="popup-content">
                    <view class="popup-title">开启宝箱后可随机获得以下一件赏品</view>
                    <view class="popup-box">
                        <view class="award-hight-bg">
                            <view class="award-hight-bg-item" v-for="(item, index) in boxskus" :key="index">
                                <image mode="aspectFit" :src="item.thumb"></image>

                                <view class="award-hight-bg-item-text">{{ item.title }}</view>
                            </view>
                        </view>
                    </view>
                </view>
            </view>
        </view>
        <pay-card
            @__l="
                __l($event, {
                    eventOpts: [
                        ['^success', [['successDeliver']]],
                        ['^cancel', [['handlePayCardClick']]]
                    ]
                })
            "
            @cancel="
                __e($event, {
                    eventOpts: [
                        ['^success', [['successDeliver']]],
                        ['^cancel', [['handlePayCardClick']]]
                    ]
                })
            "
            @success="
                __e($event, {
                    eventOpts: [
                        ['^success', [['successDeliver']]],
                        ['^cancel', [['handlePayCardClick']]]
                    ]
                })
            "
            :data-event-opts="[
                ['^success', [['successDeliver']]],
                ['^cancel', [['handlePayCardClick']]]
            ]"
            :selectedId="selectedIds"
            vueId="6d72e1cd-3"
            v-if="isShowPay"
        ></pay-card>
        <return-sale-popup
            @__l="
                __l($event, {
                    eventOpts: [
                        ['^cancel', [['handleSaleCancel']]],
                        ['^refresh', [['refresh']]]
                    ]
                })
            "
            @cancel="
                __e($event, {
                    eventOpts: [
                        ['^cancel', [['handleSaleCancel']]],
                        ['^refresh', [['refresh']]]
                    ]
                })
            "
            @refresh="
                __e($event, {
                    eventOpts: [
                        ['^cancel', [['handleSaleCancel']]],
                        ['^refresh', [['refresh']]]
                    ]
                })
            "
            :data-event-opts="[
                ['^cancel', [['handleSaleCancel']]],
                ['^refresh', [['refresh']]]
            ]"
            :packageSku="currentItem"
            :uuid="currentUuid"
            vueId="6d72e1cd-4"
            v-if="isShowReturnSalePopup"
        ></return-sale-popup>
        <resale-popup
            @__l="
                __l($event, {
                    eventOpts: [
                        ['^cancel', [['hideResalePopup']]],
                        ['^refresh', [['refresh']]]
                    ]
                })
            "
            @cancel="
                __e($event, {
                    eventOpts: [
                        ['^cancel', [['hideResalePopup']]],
                        ['^refresh', [['refresh']]]
                    ]
                })
            "
            @refresh="
                __e($event, {
                    eventOpts: [
                        ['^cancel', [['hideResalePopup']]],
                        ['^refresh', [['refresh']]]
                    ]
                })
            "
            :data-event-opts="[
                ['^cancel', [['hideResalePopup']]],
                ['^refresh', [['refresh']]]
            ]"
            :packageSku="currentItem"
            :uuid="currentUuid"
            vueId="6d72e1cd-5"
            v-if="isShowResalePopup"
        ></resale-popup>
        <view
            @tap="__e"
            @touchmove.stop.prevent="__e"
            class="mask"
            :data-event-opts="[
                ['tap', [['e0', ['$event']]]],
                ['touchmove', [['', ['$event']]]]
            ]"
            v-if="isReturnSaleSuccess"
        >
            <view @tap.stop.prevent="__e" :data-event-opts="[['tap', [['', ['$event']]]]]"></view>
        </view>
        <navigator url="/pages/myBox/locked">
            <view class="locked-float-btn">
                <view>{{ statusTotal['locked'] || 0 }}</view>
            </view>
        </navigator>
        <tab-bar @__l="__l" :isselected="2" vueId="6d72e1cd-6"></tab-bar>
    </view>
</template>

<script>
import noData from '@/components/NoData/NoData';
import returnSalePopup from '@/components/ReturnSalePopup/ReturnSalePopup';
import resalePopup from '@/components/ResalePopup/ResalePopup';
import packageSku from '@/pages/myBox/components/PackageSku';
import payCard from '@/pages/myBox/components/PayCard';
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['pages/myBox/index'],
    {
        '457e': function (t, e, s) {
            'use strict';

            (function (t) {
                var i = s('4ea4');
                Object.defineProperty(e, '__esModule', {
                    value: true
                });
                e.default = void 0;
                var n = i(s('448a'));
                var o = {
                    components: {
                        PackageSku: function () {
                            Promise.all([s.e('common/vendor'), s.e('pages/myBox/components/PackageSku')])
                                .then(
                                    function () {
                                        return resolve(s('de82'));
                                    }.bind(null, s)
                                )
                                .catch(s.oe);
                        },
                        PayCard: function () {
                            Promise.all([s.e('common/vendor'), s.e('pages/myBox/components/PayCard')])
                                .then(
                                    function () {
                                        return resolve(s('00af'));
                                    }.bind(null, s)
                                )
                                .catch(s.oe);
                        }
                    },
                    data: function () {
                        return {
                            order: {},
                            showSelect: true,
                            reasons: [],
                            visible: false,
                            dataList: [],
                            current: 0,
                            currentUuid: '6056e83ef3251',
                            currentItem: {},
                            types: ['pending', 'resale_pending', 'picked', 'all'],
                            typeTextList: ['待处理', '提货中', '已提货', '全部'],
                            boxList: ['赏品', '宝箱'],
                            boxIndex: 0,
                            boxShow: false,
                            allBox: [],
                            arrBox: ['暂无待处理的商品', '暂无提货中的商品', '暂无已提货的商品', '暂无商品'],
                            isSelectMode: false,
                            selectType: 'deliver',
                            selectedIds: [],
                            isShowPay: false,
                            isShowReturnSalePopup: false,
                            isShowResalePopup: false,
                            statusTotal: {},
                            isReturnSaleSuccess: false,
                            boxTitle: true,
                            popup: false,
                            boxskus: [],
                            myInfo: {}
                        };
                    },
                    computed: {
                        orderConfig: function () {
                            return this.$store.getters.setting.order || {};
                        },
                        marketConfig: function () {
                            return this.$store.getters.setting.market || {};
                        },
                        exchangeConfig: function () {
                            return this.$store.getters.setting.exchange || {};
                        }
                    },
                    onLoad: function (e) {
                        t.showLoading({
                            title: '加载中'
                        });
                        this.getBoxList();
                        this.current = this.types.indexOf(e.status || 'pending');
                    },
                    onShow: function () {
                        var that = this;
                        this.$http('/task/level_list?no_list=1')
                            .then(function (e) {
                                that.myInfo = e.data.my_task_level_info;
                                if (e.data.my_task_level_info.level > 4) {
                                    that.types = ['pending', 'resale_pending', 'picked', 'all'];
                                    that.typeTextList = ['待处理', '提货中', '已提货', '全部'];
                                } else {
                                    that.types = ['pending', 'picked', 'all'];
                                    that.typeTextList = ['待处理', '已提货', '全部'];
                                }
                                that.initData();
                            })
                            .catch(function (t) {
                                console.log(t);
                            });
                    },
                    onUnload: function () {},
                    methods: {
                        handlePayCardClick: function () {
                            this.isShowPay = false;
                        },
                        handleSaleCancel: function () {
                            this.isShowReturnSalePopup = false;
                        },
                        getMyInfo: function () {
                            var that = this;
                            this.$http('/task/level_list?no_list=1')
                                .then(function (e) {
                                    that.myInfo = e.data.my_task_level_info;
                                })
                                .catch(function (t) {
                                    console.log(t);
                                });
                        },
                        showaward: function (t) {
                            this.popup = true;
                            this.boxskus = this.allBox[t].skus;
                            console.log(this.allBox);
                            console.log(this.boxskus);
                        },
                        close: function () {
                            this.popup = false;
                        },
                        getBoxList: function () {
                            var that = this;
                            this.$http('/shangdai/records?status=0').then(function (e) {
                                console.log(e);
                                that.allBox = e.data.list;
                            });
                        },
                        boxchange: function (t) {
                            this.refresh();
                            this.boxIndex = t;
                            if (1 == t) {
                                (this.boxShow = true), (this.showSelect = false);
                            } else {
                                (this.boxShow = false), (this.showSelect = true);
                            }
                        },
                        openBox: function (e) {
                            var that = this;
                            console.log(e);
                            this.$http('/shangdai/open/'.concat(e), 'POST')
                                .then(function (e) {
                                    t.$showMsg('恭喜你获得' + e.data.shangdai_sku.title);
                                    that.getBoxList();
                                })
                                .catch(function (e) {
                                    t.showToast({
                                        title: '开启失败',
                                        icon: 'none',
                                        duration: 2000
                                    });
                                });
                        },
                        hideResalePopup: function () {
                            this.isShowResalePopup = false;
                        },
                        toPage: function (e) {
                            t.navigateTo({
                                url: e
                            });
                        },
                        successDeliver: function (e) {
                            this.cancelSelect();
                            'custom_gateway' === e.deliver_type
                                ? (this.refresh(),
                                  (this.isShowPay = false),
                                  t.showToast({
                                      title: '提交成功',
                                      icon: 'none'
                                  }))
                                : ((this.current = 2),
                                  this.refresh(),
                                  (this.isShowPay = false),
                                  t.showModal({
                                      title: '发货成功',
                                      content: '已成功提交发货请求，请注意查收快递哦~'
                                  }));
                        },
                        selectAll: function () {
                            if (!this.dataList[0]) {
                                return false;
                            }
                            this.selectedIds = [];
                            for (var t = 0; t < this.dataList[0].list.length; t++) {
                                var e = this.dataList[0].list[t];
                                'deliver' === this.selectType
                                    ? 'virtual_asset' === e.sku_type_text || e.is_presell || this.selectedIds.push(e.id)
                                    : 'return_sale' === this.selectType
                                    ? !this.orderConfig.is_ban_return_sale && 'virtual_asset' != e.sku_type_text && e.is_return_saleable && this.selectedIds.push(e.id)
                                    : 'resale' === this.selectType && 'virtual_asset' != e.sku_type_text && this.selectedIds.push(e.id);
                            }
                        },
                        cancelSelect: function () {
                            this.isSelectMode = false;
                            this.selectedIds = [];
                        },
                        selectOrSubmit: function () {
                            if (this.isSelectMode) {
                                if (0 == this.selectedIds.length) {
                                    t.showModal({
                                        title: '请选择物品',
                                        content: '选择一件或多件物品后才能提交发货哦~'
                                    });
                                    return false;
                                }
                                this.isShowPay = true;
                            } else {
                                this.isSelectMode = true;
                            }
                        },
                        batchReturnSale: function () {
                            var that = this;
                            if (0 == this.selectedIds.length) {
                                t.showModal({
                                    title: '请选择物品',
                                    content: '选择一件或多件物品后才能分解哦~'
                                });
                                return false;
                            }
                            t.showModal({
                                title: '确认分解',
                                content: '确认要批量分解吗?',
                                success: function (s) {
                                    console.log(that.selectedIds);
                                    if (s.confirm) {
                                        that.isReturnSaleSuccess = true;
                                        t.showLoading({
                                            title: '分解中...'
                                        });
                                        that.$http('/asset/return-sale/confirm', 'post', {
                                            ids: that.selectedIds
                                        }).then(function (s) {
                                            t.showToast({
                                                title: '分解成功'
                                            });
                                            that.refresh();
                                            that.isSelectMode = false;
                                            that.isReturnSaleSuccess = false;
                                        });
                                    }
                                }
                            });
                        },
                        batchResale: function () {
                            var that = this;
                            if (0 == this.selectedIds.length) {
                                t.showModal({
                                    title: '请选择物品',
                                    content: '选择一件或多件物品后才能挂售哦~'
                                });
                                return false;
                            }
                            t.showModal({
                                title: '确认挂售到交易市场',
                                content: '统一以建议挂售价挂售到交易市场',
                                success: function (s) {
                                    if (s.confirm) {
                                        t.showLoading({
                                            title: '挂售中...'
                                        });
                                        that.$http('/market/resale/batch/confirm', 'post', {
                                            ids: that.selectedIds
                                        }).then(function (s) {
                                            t.hideLoading();
                                            that.refresh();
                                            that.isSelectMode = false;
                                            t.showToast({
                                                title: '转售成功，即将跳转~',
                                                icon: 'none'
                                            });
                                            setTimeout(function (e) {
                                                t.navigateTo({
                                                    url: '/pages/resale/index'
                                                });
                                            }, 1500);
                                        });
                                    }
                                }
                            });
                        },
                        batchExchange: function () {
                            return 0 == this.selectedIds.length
                                ? (t.showModal({
                                      title: '请选择物品',
                                      content: '选择一件或多件物品后才能置换哦~'
                                  }),
                                  false)
                                : this.selectedIds.length >= 10
                                ? (t.showModal({
                                      title: '超出限制了',
                                      content: '单次置换限制在10件以内~'
                                  }),
                                  false)
                                : (this.setStorage('exchange_package_sku_ids', this.selectedIds),
                                  void t.navigateTo({
                                      url: '/pages/exchange/productList'
                                  }));
                        },
                        enterSelectMode: function (t) {
                            this.selectedIds = [];
                            this.isSelectMode = true;
                            this.selectType = t;
                        },
                        checkItem: function (t) {
                            var e = this.selectedIds.indexOf(t.id);
                            e > -1 ? this.selectedIds.splice(e, 1) : this.selectedIds.push(t.id);
                        },
                        refresh: function () {
                            this.cleanData();
                            this.getOrderList();
                            this.getBoxList();
                            this.initBoxTotalData();
                        },
                        scrolltolower: function () {
                            this.dataList[this.current].page++;
                            this.getOrderList();
                            this.getBoxList();
                        },
                        initData: function () {
                            var t = [];
                            this.types.forEach(function (e) {
                                t.push({
                                    list: [],
                                    type: e,
                                    page: 1,
                                    per_page: 50,
                                    total: 0,
                                    init: false,
                                    loading: false
                                });
                            });
                            this.dataList = t;
                            this.refresh();
                            console.log(t);
                        },
                        cleanData: function () {
                            this.dataList.forEach(function (t) {
                                t.page = 1;
                                t.init = false;
                            });
                        },
                        initBoxTotalData: function () {
                            var that = this;
                            this.$http('/status-total/package-sku').then(function (s) {
                                that.statusTotal = s.data.info;
                                t.hideLoading();
                                console.log(that.statusTotal);
                            });
                        },
                        visibleChange: function () {
                            this.visible = !this.visible;
                        },
                        actions: function (e) {
                            switch (e.action) {
                                case '返售':
                                    this.currentUuid = e.order.uuid;
                                    this.currentItem = e.order;
                                    this.isShowReturnSalePopup = true;
                                    break;
                                case '核销码':
                                    t.navigateTo({
                                        url: '/pages/orderCode/index?uuid=' + e.order.uuid
                                    });
                                    break;
                                case '查看订单':
                                    t.navigateTo({
                                        url: '/pages/orderDetail/index?uuid=' + e.order.pick_order.uuid
                                    });
                                    break;
                                case '转售':
                                    this.currentUuid = e.order.uuid;
                                    this.currentItem = e.order;
                                    this.isShowResalePopup = true;
                            }
                        },
                        currentChange: function (t) {
                            var e = t.currentTarget.dataset.current;
                            0 == e || 3 == e
                                ? ((this.boxTitle = true), (this.boxIndex = 0), (this.boxShow = false), (this.showSelect = true))
                                : ((this.boxTitle = false), (this.boxShow = false));
                            if (e !== this.current) {
                                this.current = e;
                                this.dataList[this.current].init || this.getOrderList();
                            }
                        },
                        currentChange2: function (t) {
                            var e = t.detail.current;
                            0 == e || 3 == e ? ((this.boxTitle = true), (this.boxIndex = 0)) : ((this.boxIndex = 0), (this.boxTitle = false), (this.boxShow = false));
                            if (e !== this.current) {
                                this.current = e;
                                this.dataList[this.current].init || this.getOrderList();
                            }
                        },
                        getOrderList: function () {
                            var t = this.dataList[this.current];
                            t.loading ||
                                ((t.loading = true),
                                this.$http('/asset/package-skus', 'GET', {
                                    status: t.type,
                                    page: t.page,
                                    per_page: t.per_page
                                }).then(function (e) {
                                    var s;
                                    t.loading = false;
                                    1 === e.data.current_page ? (t.list = e.data.list) : (s = t.list).push.apply(s, (0, n.default)(e.data.list));
                                    t.total = e.data.item_total;
                                    t.init = true;
                                }));
                        }
                    }
                };
                e.default = o;
            }.call(this, s('543d').default));
        },
        '57c6': function (t, e, s) {
            'use strict';

            var i = s('fcf0');
            s.n(i).a;
        },
        '70b5': function (t, e, s) {
            'use strict';

            s.d(e, 'b', function () {
                return n;
            });
            s.d(e, 'c', function () {
                return o;
            });
            s.d(e, 'a', function () {
                return i;
            });
            var i = {
                NoData: function () {
                    return s.e('components/NoData/NoData').then(s.bind(null, 'cafe'));
                },
                ReturnSalePopup: function () {
                    return s.e('components/ReturnSalePopup/ReturnSalePopup').then(s.bind(null, 'f4ef'));
                },
                ResalePopup: function () {
                    return s.e('components/ResalePopup/ResalePopup').then(s.bind(null, 'cd4e'));
                }
            };
            var n = function () {
                var that = this;
                var e = (that.$createElement, that._self._c, that.boxShow ? that.allBox.length : null);
                var s = that.__map(that.types, function (e, s) {
                    return {
                        $orig: that.__get_orig(e),
                        l0: that.boxShow
                            ? null
                            : that.__map(that.dataList[s].list, function (e, s) {
                                  return {
                                      $orig: that.__get_orig(e),
                                      g0: that.selectedIds.indexOf(e.id)
                                  };
                              }),
                        g1: that.boxShow ? null : that.dataList[s].list.length,
                        g2: that.boxShow ? null : that.dataList[s].init && !that.dataList[s].list.length
                    };
                });
                if (0 == that.current && !that.orderConfig.is_hide_deliver_btn && that.showSelect && that.isSelectMode && 'deliver' === that.selectType) {
                    var i = that.selectedIds.length;
                } else {
                    var i = null;
                }
                if (0 == that.current && !that.orderConfig.is_hide_deliver_btn && that.showSelect && that.isSelectMode && 'return_sale' === that.selectType) {
                    var n = that.selectedIds.length;
                } else {
                    var n = null;
                }
                var o =
                    0 == that.current && !that.orderConfig.is_hide_deliver_btn && that.showSelect && that.isSelectMode && 'resale' === that.selectType
                        ? that.selectedIds.length
                        : null;
                var a =
                    0 == that.current && !that.orderConfig.is_hide_deliver_btn && that.showSelect && that.isSelectMode && 'exchange' === that.selectType
                        ? that.selectedIds.length
                        : null;
                that._isMounted ||
                    (that.e0 = function (e) {
                        that.isReturnSaleSuccess = false;
                    });
                that.$mp.data = Object.assign(
                    {},
                    {
                        $root: {
                            g3: e,
                            l1: s,
                            g4: i,
                            g5: n,
                            g6: o,
                            g7: a
                        }
                    }
                );
            };
            var o = [];
        },
        8448: function (t, e, s) {
            'use strict';

            s.r(e);
            var i = s('457e');
            var n = s.n(i);
            for (var o in i) {
                if (['default'].indexOf(o) < 0) {
                    (function (t) {
                        s.d(e, t, function () {
                            return i[t];
                        });
                    })(o);
                }
            }
            e.default = n.a;
        },
        a30c: function (t, e, s) {
            'use strict';

            (function (t, e) {
                var i = s('4ea4');
                s('18ba');
                i(s('66fd'));
                var n = i(s('e133'));
                t.__webpack_require_UNI_MP_PLUGIN__ = s;
                e(n.default);
            }.call(this, s('bc2e').default, s('543d').createPage));
        },
        e133: function (t, e, s) {
            'use strict';

            s.r(e);
            var i = s('70b5');
            var n = s('8448');
            for (var o in n) {
                if (['default'].indexOf(o) < 0) {
                    (function (t) {
                        s.d(e, t, function () {
                            return n[t];
                        });
                    })(o);
                }
            }
            s('57c6');
            var a = s('f0c5');
            var l = Object(a.a)(n.default, i.b, i.c, false, null, null, null, false, i.a, void 0);
            e.default = l.exports;
        },
        fcf0: function (t, e, s) {}
    },
    [['a30c', 'common/runtime', 'common/vendor']]
]);
</script>
<style>
@import './index.css';
</style>
